some functions i made to help me, and the my bots spam http://www.metababy.com in style.
generates a lot of odd looking html
propably uses all the other functions on these pages (rand.sh, curl.sh, ...) and are insecure as hell. Caution advised ;)
crazy () {
local x;
local FX;
local FX2;
for x in "$@";
do
local U=-1;
while (( " U++ < ${#x} " )); do
FX="<font face='"$(arand Fantasy Sans-Serif Impact Courier Times Arial Helvetic
a Futura)"' size='"$(rand 6)"'>";
FX2=$(arand sup sub u b big small s strike i);
echo -n "$FX""<$FX2>""${x:$U:1}""</$FX2>""</font>";
done;
done
}
divbox () {
local X="$1";
shift;
local Y="$1";
shift;
echo -n "<span style=position:absolute;top:${Y};left:${X};background:$(arand \#123456 b
lack orange purple);color:$(arand white yellow blue pink grey);>$*</span>"
}
ecrazy () {
local x;
for x in"$@";
do
U=-1;
while (( " U++ < ${#x} " )); do
if (( " $(( U % 2 )) == 0 " )); then
echo -n "<sup>"${x:$U:1}"</sup>";
else
echo -n "<sub>"${x:$U:1}"</sub>";
fi;
done;
done
}
mblog ()
{
echo -n "<font color=$(arand blue purple green blue black orange pink \#123456 silver g
reen orange green orange) > <sub> "$@" </sub> </font> "
}
mbox () {
echo -n $(divbox $(rand 100)% $(rand 100)% "<font color=$(arand blue purple green blue
black orange pink \#123456 silver green orange green orange) > <sub> "$@" </sub> </font> ")
}
mmbinsert () {
echo -n "<script>top.frames[1].document.body.innerHTML='"$*"'</script>"
}
|